package cn.tedu.jsd2205the.back.end.project.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@ApiModel("用户登录的dto")
public class UserLoginDTO {
    @NotNull(message = "用户名不能为空")
    @NotEmpty(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名", name = "username", required = true)
    private String username;

    @NotNull(message = "密码不能为空")
    @ApiModelProperty(value = "密码", name = "password", required = true)
    private String password;
}